package com.qingke.pojo;

import java.util.List;

public class Blog {

	private  int id ;
	private int userId;
	private String title;
	private String content;
	private User author;
	
	public User getAuthor() {
		return author;
	}
	public void setAuthor(User author) {
		this.author = author;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public  String toString(){
		return "  id:"+getId()+"  userID:"+getUserId()+"  title:"+getTitle();
	}
}
